sql 存储过程参数为空则不作为条件 解析: and (c.BuyTime<=@BuyTimeEnd or @BuyTimeEnd is null) 首先 and 条件后面是括号,那就说明括号 是一 ...